<?php

/**
 * @author Martin Pernica
 * @copyright 2009
 */
$query = Registry::get('db')->query("SELECT id, title, require_rank FROM {prefix}custom ORDER BY id DESC LIMIT 10");
while($data = $query->fetch_array()){
	echo "\n<tr>".'<td>'.$data['title'].'</td>';
	echo '<td>'.rank2text($data['require_rank']).'</td>';
	echo '<td><a href="index.php?p=components&name=custom&a=edit&id='.$data['id'].'"><img src="../libs/icons/page_white_edit.png" /></a><a href="index.php?p=components&name=custom&a=delete&id='.$data['id'].'"><img src="../libs/icons/page_white_delete.png" /></a></td>'."</tr>\n";
}

?>